package com.runa.rccprotocol.dto.param;

public class ExtendParamCode18 extends ExtendParam {

    private boolean select;

    public ExtendParamCode18(boolean select) {
        this.select = select;
    }

    public boolean isSelect() {
        return select;
    }

    public void setSelect(boolean select) {
        this.select = select;
    }

    @Override
    public byte[] toBuffer() {
        byte[] bs = new byte[5];
        bs[0] = 3;
        bs[1] = 0;
        bs[2] = 18;
        bs[3] = 0;
        bs[4] = (byte) (select ? 1 : 0);
        return bs;
    }
}
